package edu.hitsz.application;

import static edu.hitsz.application.ImageManager.BACKGROUND_IMAGE3;

public class HardGame extends Game {

    public HardGame(boolean musicSwitch, String userName) {
        super(musicSwitch, userName);
        background = BACKGROUND_IMAGE3;
        rankFile = "./././rankData/rankList_hard.txt";
        increaseDiffCircle = 20000;
    }

    @Override
    protected void increaseDifficulty() {

        if(diffDegree != (time/increaseDiffCircle)){
            diffDegree = time/increaseDiffCircle;
            enemyMaxNumber = 5 + (diffDegree);
            mobHp = 30 + 15*(diffDegree);
            eliteHp = 90 + 30*(diffDegree);
            bossHp = 300 + 100*(diffDegree);
            mobChoice = Math.max(75 - 5*diffDegree,10);
            counterEnd = Math.max(1,3-diffDegree);
            bossInterval = Math.max(0,1000-100*diffDegree);
            System.out.println("难度变化:");
            System.out.println("boss机血量: " + bossHp + "  精英机血量: " + eliteHp + "  普通敌机血量: " + mobHp);
            System.out.println("同一时刻敌机上限: " + enemyMaxNumber);
            System.out.println("精英敌机产生概率：" + (100-mobChoice) + "%");
            System.out.println("敌机射击速度：" + counterEnd + "周期1次" );
            System.out.println("boss战机生成间隔: " + bossInterval + "分" );
        }
    }
}
